package com.cccyy.decimalformat;

import java.text.DecimalFormat;

public class test {
    public static void main(String[] args) {
//        int loanAmount = Integer.parseInt(String.valueOf(1234.56));
//        String numStr = new DecimalFormat("###,###.####").format(loanAmount / 10000d);
//        System.out.println("最后展示的额度是：" + numStr);

        Double loanAmount = Double.parseDouble(String.valueOf(1234.56));
        String numStr = new DecimalFormat("###,###.####").format(loanAmount / 10000d);
        System.out.println("最后展示的额度是：" + numStr);
    }
}
